package com.nstar.splus.model
{
/**
组件名称：微博客户端选项设置
组件说明：
开发时间：2010.07.31
开发人员: Jonny
*/
	public class OptionVO
	{
		//刷新时间最大最小值
		public static const MIN_INTERVAL:int = 30;
		public static const MAX_INTERVAL:int = 3600;
		//获取数据最大最小值
		public static const MIN_FETCH_SIZE:int = 20;
		public static const MAX_FETCH_SIZE:int = 50;
		//列表可显示的消息数最大最小值
		public static const MIN_LIST_COUNT:int = 20;
		public static const MAX_LIST_COUNT:int = 50;
		
		//气泡窗口停留时间最大最小值
		public static const MIN_POPUP_DELAY:int = 4;
		public static const MAX_POPUP_DELAY:int = 15;

		//默认设置
		public static const DEFAULT_INTERVAL:int = 40;
		public static const DEFAULT_FETCH_SIZE:int = 20;
		public static const DEFAULT_LIST_COUNT:int = 40;
		public static const DEFAULT_POPUP_DELAY:int = 5;
		public static const DEFAULT_AUTO_LOGIN:Boolean = false;
		public static const DEFAULT_RUN_ON_START:Boolean = false;
		public static const DEFAULT_POPUP_TIP:Boolean = true;
		public static const DEFAULT_SOUND_TIP:Boolean = true;
		public static const DEFAULT_FONT_SIZE:Number = 12;
		public static const DEFAULT_APP_ALPHA:Number = 1;
		public static const DEFAULT_USE_BG_IMAGE:Boolean = false;
		public static const DEFAULT_PRESET_MSG:String = "@统计评论:@统计评论后，一分钟内将作为评论返回，可查看该微博的转发和评论数。";
		public static const DEFAULT_DING_URL:String = "assets/tips.mp3";
		public static const DEFAULT_USE_CUSTOM_TIP_SOUND:Boolean = false;
		public static const DEFAULT_AUTO_SNAP:Boolean = true;
		public static const DEFAULT_ALWAYS_IN_FRONT:Boolean = false;
		public static const DEFAULT_VERSION_CHECK:Boolean = true;
		

		public var refreshInterval:Number = 40;//刷新时间间隔
		public var fetchSize:Number = 20;//每次获取的最大消息数
		public var listMaxCount:int = 40;//列表可容纳的最大消息数
		
		public var autoLogin:Boolean = DEFAULT_AUTO_LOGIN;//自动登录
		public var runOnStart:Boolean = DEFAULT_RUN_ON_START;//开机启动
		public var popupTip:Boolean = DEFAULT_POPUP_TIP;//允许气泡提示
		public var popupDelay:int = DEFAULT_POPUP_DELAY;//弹出窗口消息停留时间
		public var soundTip:Boolean = DEFAULT_SOUND_TIP;//新消息允许声音提示
		public var fontSize:Number = DEFAULT_FONT_SIZE;//列表默认字体大小
		public var appAlpha:Number = DEFAULT_APP_ALPHA;//应用的背景透明度
		public var useBgImage:Boolean = DEFAULT_USE_BG_IMAGE;//是否使用背景
		public var presetMsg:String = DEFAULT_PRESET_MSG;//预设的微博消息
		public var dingUrl:String = DEFAULT_DING_URL;//声音提示MP3路径
		public var useCustomTipSound:Boolean = DEFAULT_USE_CUSTOM_TIP_SOUND;//使用自定义提示音
		public var autoSnap:Boolean = DEFAULT_AUTO_SNAP;//自动吸附
		public var alwaysInFrontFlag:Boolean = DEFAULT_ALWAYS_IN_FRONT;//窗口置顶
		public var versionCheck:Boolean = DEFAULT_VERSION_CHECK;//是否版本自动检查
		
		
		public function OptionVO()
		{
		}
		
		public function toString():String{
			return 	"refreshInterval="+refreshInterval+"\n"+
					"listMaxCount="+listMaxCount+"\n"+
					"popupDelay="+popupDelay+"\n"+
					"autoLogin="+autoLogin+"\n"+
					"runOnStart="+runOnStart+"\n"+
					"popupTip="+popupTip+"\n"+
					"soundTip="+soundTip+"\n"+
					"fontSize="+fontSize+"\n"+
					"appAlpha="+appAlpha+"\n"+
					"useBgImage="+useBgImage+"\n"+
					"presetMsg="+presetMsg+"\n"+
					"dingUrl="+dingUrl+"\n"+
					"useCustomTipSound="+useCustomTipSound+"\n"+
					"dingUrl="+dingUrl+"\n"+
					"autoSnap="+autoSnap+"\n"+
					"checkVersion="+versionCheck+"\n"+
					"alwaysInFrontFlag="+alwaysInFrontFlag+"\n";
		}

	}
}